package com.sqx.modules.health.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 医院科室表
 * </p>
 *
 * @author gxy
 * @since 2022-06-13
 */
@Getter
@Setter
@TableName("health_sys_department")
@ApiModel(value = "Department对象", description = "医院科室表")
public class Department implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("科室名称")
    private String name;

    @ApiModelProperty("所属医院")
    private Long hid;

    @ApiModelProperty("是否启用 0：启用  1：禁用")
    private Integer isable;

    @ApiModelProperty("所属医院名称")
    @TableField(exist=false)
    private String hName;

}
